# Tanım: PDF Düzenleyici
# URL: http://www.sejda.com/deskto
# Paketçi: Cihan_Alkan
# Gerekler: 
# Grup: 

isim=sejda-desktop
surum=4.3.0
devir=1

kaynak=(https://bitbucket.org/sejdapdf/sejda-desktop-public/downloads/sejda-desktop_${surum}_amd64.deb)

derle() {
  bsdtar -xf data.tar.xz -C "${PKG}"
  install -d "${PKG}/usr/bin"
  ln -s /opt/sejda-desktop/sejda-desktop "${PKG}/usr/bin/sejda-desktop"

  # fix permissions
  find "${PKG}" -type d -exec chmod 755 {} \;

  # symlink licenses
  install -d "${PKG}/usr/share/licenses/${isim}"
  for _i in EULA.pdf LICENSE.electron LICENSES.chromium.html; do
    ln -s /opt/sejda-desktop/${_i} "${PKG}/usr/share/licenses/${isim}/${_i}"
  done
}
